package cn.stylefeng.guns.sys.modular.personInfo.mapper;

import cn.stylefeng.guns.sys.modular.personInfo.entity.PersonInfo;
import cn.stylefeng.guns.sys.modular.personInfo.model.params.PersonInfoParam;
import cn.stylefeng.guns.sys.modular.personInfo.model.result.PersonInfoResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 人员表 Mapper 接口
 * </p>
 *
 * @author WangZhen
 * @since 2021-01-20
 */
public interface PersonInfoMapper extends BaseMapper<PersonInfo> {

    /**
     * 获取列表
     *
     * @author WangZhen
     * @Date 2021-01-20
     */
    List<PersonInfoResult> customList(@Param("paramCondition") PersonInfoParam paramCondition);

    /**
     * 获取map列表
     *
     * @author WangZhen
     * @Date 2021-01-20
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") PersonInfoParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author WangZhen
     * @Date 2021-01-20
     */
    Page<PersonInfoResult> customPageList(@Param("page") Page page, @Param("paramCondition") PersonInfoParam paramCondition);


    /**
     * 插入数据
     */

    void insertPerson(@Param("paramCondition") PersonInfoParam paramCondition);


    /**
     * 删除接口
     *
     * @param paramCondition
     * @return
     */
    Integer selectDelete(@Param("paramCondition") Integer paramCondition);


    /**
     * 逻辑删除
     *
     * @param paramCondition
     */
    void updateDelete(@Param("paramCondition") Integer paramCondition);


    /**
     * 修改
     *
     * @param paramCondition
     */
    void updatePerson(@Param("paramCondition") PersonInfoParam paramCondition);

}
